package com.example.jedis.demo;

import redis.clients.jedis.Jedis;

/**
 * 描述该类
 *
 * @author <a href="920786312@qq.com">周飞</a>
 * @class: Demo01
 * @date 2022/2/2  15:23
 * @Verson 1.0 -2022/2/2  15:23
 * @see
 */
public class Demo01 {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("192.168.187.138",6379);
        String pong = jedis.ping();
        System.out.println("连接成功："+pong);
        jedis.close();
    }
}